// Called from entry.S to get us going.
#include <x86.h>

extern void main(int argc, char **argv);

char *binaryname = "(PROGRAM NAME UNKNOWN)";

void libmain(int argc, char **argv)
{
	int i;
	// save the name of the program so that panic() can use it
	if (argc > 0)
		binaryname = argv[0];

	// call user main routine
	main(argc, argv);
	// TODO exit
}

